package com.octnote.service;

import com.octnote.domain.note.NoteCreateForm;
import com.octnote.domain.note.UserNote;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletRequest;

/**
 * 记事服务网接口定义
 * 
 * @author leohehe
 *
 */
public interface NoteService {
    UserNote create(NoteCreateForm form , HttpServletRequest request);

    UserNote modify(NoteCreateForm form , HttpServletRequest request);

    Page<UserNote> getNoteList(String searchPhrase, Pageable p);

    void delete(Long id);
}
